package com.example.demo.mapper;

import com.example.demo.model.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BookMapper {
    List<Book> getBookList();
    Integer addBook(Book book);
    Integer deleteBook(Integer book_id);

    Integer modifyBook(Book book);

    List<Map<String,Integer>>  getBookCountByCategory();
}
